package cn.hit.tianqiao.service.impl;

import cn.hit.tianqiao.dao.FacilityDao;
import cn.hit.tianqiao.dao.impl.FacilityDaoImpl;
import cn.hit.tianqiao.domain.Facility;
import cn.hit.tianqiao.service.FacilityService;

import java.util.List;

public class FacilityServiceImpl implements FacilityService {
    FacilityDao dao = new FacilityDaoImpl();

    @Override
    public List<Facility> findFacilitiesWithinDistance(double longitude, double latitude, double distance) {
        return dao.findWithinDistance(longitude, latitude, distance);
    }
}
